﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Package_Un.aspx.cs" Inherits="Manage_Package_Un" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../CSS/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript">
   
        function SelectAllCheckBox() {
            var form = document.forms[0];
            for (i = 0; i < form.elements.length; i++) {
                if (form.elements[i].checked == false) {
                    j = 0;
                }
                else {
                    j = 1;
                }
            } if (j == 0) {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = true;
                }
            }
            else {
                for (i = 0; i < form.elements.length; i++) {
                    form.elements[i].checked = false;
                }
            }
        }
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：业务管理-直接解盘
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                            <tr>
                                                <td style="padding: 2px; width: 100%">
                                                    <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                        bordercolorlight="#b5d6e6">
                                                        <tr>
                                                            <%--<td style="width: 15%" align="right">
                                                                <asp:RadioButtonList ID="rbtnl_Zone" runat="server" RepeatDirection="Horizontal"
                                                                    OnSelectedIndexChanged="rbtnl_Zone_SelectedIndexChanged" AutoPostBack="true">
                                                                    <asp:ListItem Value="1" Selected="True">立体库</asp:ListItem>
                                                                    <asp:ListItem Value="2">回转库</asp:ListItem>
                                                                </asp:RadioButtonList>
                                                            </td>
                                                            <td style="width: 15%; padding-left: 4px;" id="td_h" runat="server" visible="false">
                                                                回转库编号：<asp:DropDownList ID="ddl_Zone" runat="server">
                                                                    <asp:ListItem Value='01'>1</asp:ListItem>
                                                                    <asp:ListItem Value='02'>2</asp:ListItem>
                                                                    <asp:ListItem Value='03'>3</asp:ListItem>
                                                                    <asp:ListItem Value='04'>4</asp:ListItem>
                                                                    <asp:ListItem Value='05'>5</asp:ListItem>
                                                                    <asp:ListItem Value='06'>6</asp:ListItem>
                                                                    <asp:ListItem Value='07'>7</asp:ListItem>
                                                                    <asp:ListItem Value='08'>8</asp:ListItem>
                                                                    <asp:ListItem Value='09'>9</asp:ListItem>
                                                                    <asp:ListItem Value='10'>10</asp:ListItem>
                                                                </asp:DropDownList>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;斗号：<asp:DropDownList ID="ddl_Dou" runat="server">
                                                                    <asp:ListItem Value='01'>1</asp:ListItem>
                                                                    <asp:ListItem Value='02'>2</asp:ListItem>
                                                                    <asp:ListItem Value='03'>3</asp:ListItem>
                                                                    <asp:ListItem Value='04'>4</asp:ListItem>
                                                                    <asp:ListItem Value='05'>5</asp:ListItem>
                                                                    <asp:ListItem Value='06'>6</asp:ListItem>
                                                                    <asp:ListItem Value='07'>7</asp:ListItem>
                                                                    <asp:ListItem Value='08'>8</asp:ListItem>
                                                                    <asp:ListItem Value='09'>9</asp:ListItem>
                                                                    <asp:ListItem Value='10'>10</asp:ListItem>
                                                                    <asp:ListItem Value='11'>11</asp:ListItem>
                                                                    <asp:ListItem Value='12'>12</asp:ListItem>
                                                                    <asp:ListItem Value='13'>13</asp:ListItem>
                                                                    <asp:ListItem Value='14'>14</asp:ListItem>
                                                                    <asp:ListItem Value='15'>15</asp:ListItem>
                                                                    <asp:ListItem Value='16'>16</asp:ListItem>
                                                                    <asp:ListItem Value='17'>17</asp:ListItem>
                                                                    <asp:ListItem Value='18'>18</asp:ListItem>
                                                                    <asp:ListItem Value='19'>19</asp:ListItem>
                                                                    <asp:ListItem Value='20'>20</asp:ListItem>
                                                                    <asp:ListItem Value='21'>21</asp:ListItem>
                                                                    <asp:ListItem Value='22'>22</asp:ListItem>
                                                                    <asp:ListItem Value='23'>23</asp:ListItem>
                                                                    <asp:ListItem Value='24'>24</asp:ListItem>
                                                                    <asp:ListItem Value='25'>25</asp:ListItem>
                                                                    <asp:ListItem Value='26'>26</asp:ListItem>
                                                                    <asp:ListItem Value='27'>27</asp:ListItem>
                                                                    <asp:ListItem Value='28'>28</asp:ListItem>
                                                                    <asp:ListItem Value='29'>29</asp:ListItem>
                                                                    <asp:ListItem Value='30'>30</asp:ListItem>
                                                                </asp:DropDownList>
                                                            </td>--%>
                                                            <td width="15%" height="22px" align="right" style="padding-right:2px;" id="td_t" runat="server" >
                                                                托盘号：<asp:TextBox ID="txt_TRAY_ID" runat="server" Style="width: 180px; height: 14px;
                                                                    border: solid 1px #b5d6e6; font-size: 9pt;"></asp:TextBox></td>
                                                            <td style="width: 35%; padding-left: 4px; padding-right: 4px;" align="right">
                                                                <font color="#ff0000"><b>
                                                                    <asp:Label ID="lab_Msg" runat="server"></asp:Label></b></font>&nbsp;
                                                                <asp:ImageButton ID="ibtn_Search" runat="server" ImageUrl="~/Images/btn/btn_Search.gif"
                                                                    OnClick="ibtn_Search_Click" />&nbsp;
                                                                <asp:ImageButton ID="ibtn_JP" runat="server" ImageUrl="~/Images/btn/btn_jiepan.gif"
                                                                    OnClick="ibtn_JP_Click" />&nbsp; &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 2px;" align="center">
                                                    <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 657px;" >
                                                        <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" Width="100%" BorderWidth="1px"
                                                            BorderColor="#B5D6E6" CellPadding="0" AllowPaging="false">
                                                            <Columns>
                                                                <asp:TemplateField>
                                                                    <HeaderTemplate>
                                                                        <input id="hchkSelect" type="checkbox" onclick="SelectAllCheckBox()" />
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                                                    </ItemTemplate>
                                                                    <ItemStyle Width="5%" />
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="TRAY_ID" HeaderText="托盘代码">
                                                                    <ItemStyle Width="8%" HorizontalAlign="Center" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Mat_Code" HeaderText="物料代码">
                                                                    <ItemStyle Width="8%" HorizontalAlign="Center" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Mat_Name" HeaderText="物料名称"></asp:BoundField>
                                                                <asp:BoundField DataField="S01" HeaderText="规格">
                                                                    <ItemStyle Width="8%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Mat_Num" HeaderText="数量">
                                                                    <ItemStyle Width="8%" HorizontalAlign="Center" />
                                                                </asp:BoundField>
                                                                <%--<asp:BoundField DataField="Act_Num" HeaderText="实际数量">
                                                                    <ItemStyle Width="8%" HorizontalAlign="Center" />
                                                                </asp:BoundField>--%>
                                                                <asp:BoundField DataField="CONTAINERID" HeaderText="容器编号">
                                                                    <ItemStyle Width="25%" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="SEC_MAT_ID" HeaderText="二级编码">
                                                                    <ItemStyle Width="5%" />
                                                                </asp:BoundField>
                                                                <%--<asp:BoundField DataField="STOCKNO" HeaderText="订单编号">
                                                                    <ItemStyle Width="5%" />
                                                                </asp:BoundField>--%>
                                                            </Columns>
                                                            <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" />
                                                            <RowStyle CssClass="gvRow" HorizontalAlign="Center" />
                                                        </asp:GridView>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 2px">
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td style="background-image: url(../images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
